package cn.yuanqiao.web.controller.archive.storeRoom;

import cn.yuanqiao.archive.storeRoom.domain.FileLocation;
import cn.yuanqiao.archive.storeRoom.service.IFileLocationService;
import cn.yuanqiao.common.web.controller.BaseController;
import cn.yuanqiao.common.web.page.TableDataInfo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/archive/fileLocation")
public class FileLocationController extends BaseController {

    @Autowired
    private IFileLocationService fileLocationService;

    /**
     * 查询档案柜列表
     */
    @PostMapping("/list")
    @PreAuthorize("@ss.hasPermi('archive:warehouseManagement:fileLocation:list')")
    public TableDataInfo list(@RequestBody Map map)
    {
        startPage();
        List<FileLocation> list = fileLocationService.getList(map);
        return getDataTable(list);
    }
}
